/*
 * @Description: 
 * @Author: xjlzs
 * @Date: 2021-10-15 13:33:47
 * @LastEditTime: 2021-10-15 16:35:51
 * @LastEditors: xjlzs
 */
import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  /* 滚动到顶部 */
  scrollBehavior(to,from,savePosition){
    return{x:0,y:0}
  },
  routes: [
    {
      path: '/',
      redirect:'/home'
    },
    {
      path:'/home',
      name:'home',
      component:resolve=>require(['../views/home/home.vue'],resolve),
    },
    {
      path:'/autoPage',
      name:'autoPage',
      component:resolve=>require(['../views/autoPage/autoPage.vue'],resolve),
    }
  ]
})
